<?php if(!defined('SIDELOADED')) { echo 'Direct access is not allowed.'; }

/**
 * Check if an emailaddress is valid.
 * @param string $email The email which should be checked.
 * @return boolean True if the email is valid, false otherwise.
 */
function checkEmail($email){
  
  return filter_var($email, FILTER_VALIDATE_EMAIL);
    
}